package com.zhl.study.controller;

import com.zhl.study.entity.Person;
import com.zhl.study.base.ResponseFactory;
import com.zhl.study.base.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description 测试类
 * @Author: z156940l@outlook.com
 * @className TestController
 * @Date: 2023/4/26 15:36
 */
@RestController
@RequestMapping("api/")
@Api(value = "脱敏", tags = "脱敏")
@Slf4j
public class TestController {

    @GetMapping("/test")
    @ApiOperation(httpMethod = "GET", value = "脱敏")
    public Result<Person> test() {
        Person user = new Person();
        user.setRealName("赵大炮");
        user.setPhoneNumber("13540841992");
        user.setAddress("四川省成都市龙泉驿区大面镇龙华一期12栋801");
        user.setIdCard("510824200708088488");
        log.info("姓名：{}，电话：{}","赵达帕","13540841992");
        return ResponseFactory.ok(user);
    }
}
